'''
def get_formatted_name(first_name,last_name):
    full_name=f"{first_name} {last_name}"
    return full_name.title()
def main():
    while True:
        print("please tell me your name:")
        print("enter a 'q' at any time to quit")
        f_name=input('first_name:')
        if f_name == 'q':
            break
        l_name=input('last_name:')
        if l_name == 'q':
            break
        formatted_name=get_formatted_name(f_name,l_name)
        print(formatted_name)


def process_names():
    while True:
        print("please tell me your name:")
        print("enter a 'q' at any time to quit")
        f_name=input('first_name:')
        if f_name == 'q':
            break
        l_name=input('last_name:')
        if l_name == 'q':
            break
        full_name=f"{f_name} {l_name}"
        print(full_name)


def process_names(*names):
    if names:
        for name in names:
            print(name)
    else:
        while True:
            print("please tell me your name:")
            print("enter a 'q' at any time to quit")
            f_name=input('first_name:')
            if f_name == 'q':
                break
            l_name=input('last_name:')
            if l_name == 'q':
                break
            full_name=f"{f_name} {l_name}"
            print(full_name)
'''


def get_formatted_name(first_name,last_name):
    full_name=f"{first_name} {last_name}"
    return full_name.title()
if __name__ == '__main__':
    while True:
        print("please tell me your name:")
        print("enter a 'q' at any time to quit")
        f_name=input('first_name:')
        if f_name == 'q':
            break
        l_name=input('last_name:')
        if l_name == 'q':
            break
        formatted_name=get_formatted_name(f_name,l_name)
        print(formatted_name)

